
<?php include('Connections/tech.php'); ?>
<?php

include ("./GetSQLValueString.php");
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO sandwich (`omlit with cheece`, hotdog, sheshwook, banee, Burger, `Omlit with pastrma`) VALUES (%s, %s, %s, %s, %s, %s)",
                      $object->GetSQLValueString(isset($_POST['omlit_with_cheece']) ? "true" : "", "defined","1","0"),
                       $object->GetSQLValueString( isset($_POST['hotdog']) ? "true" : "", "defined","1","0"),
                      $object->GetSQLValueString(isset($_POST['sheshwook']) ? "true" : "", "defined","1","0"),
                       $object->GetSQLValueString(isset($_POST['banee']) ? "true" : "", "defined","1","0"),
                      $object->GetSQLValueString(isset($_POST['Burger']) ? "true" : "", "defined","1","0"),
                      $object->GetSQLValueString(isset($_POST['Omlit_with_pastrma']) ? "true" : "", "defined","1","0"));

  

  mysql_select_db($database_tech, $tech);
 $Result1 = mysql_query($insertSQL, $tech) or die(mysql_error());
}
?>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title></title>
</head><body bgcolor="#980000"><script type="text/javascript">
<!--
var image1=new Image()
image1.src="1.jpg"
var image2=new Image()
image2.src="2.jpg"
var image3=new Image()
image3.src="3.jpg"
var image4=new Image()
image3.src="5.jpg"
//-->
</script>


<img src="HomePage_files/3.jpg" name="slide" height="60%" width="1330">
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src")
if (step<3)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>

</div>
<br><br>
<div id="header" style="height:40px;width:99.79%;text-align:center;Valign:center;">
<form>
<a href="Home.html"Target="_blank"  style="text-decoration:none;" class='ex1' ><INPUT TYPE="button" 
VALUE="HomePage" style="color:white; background-color:red;"/></a>
<a href="Familyfood.html"><INPUT TYPE="button" 
VALUE="Familyfood" style="color:white; background-color:red;"/></a>
<a href="Desserts.html"><INPUT TYPE="button" 
VALUE="Desserts" style="color:white; background-color:red;"/></a>
<a href="SOup.html"><INPUT TYPE="button" 
VALUE="Sandwiches" style="color:white; background-color:red;"/></a>
<a href="Drink.html"><INPUT TYPE="button" 
VALUE="Drink" style="color:white; background-color:red;"/></a>
<a href="salad.html"><INPUT TYPE="button" 
VALUE="Salad"style="color:white; background-color:red;"/></a>
<a href="Log in.html"><INPUT TYPE="button" 
VALUE="Log in" style="color:white; background-color:red;"/></a> <a href="Contact us.html"><INPUT TYPE="button" 
VALUE="Contact us" style="color:white; background-color:red;"/></a>
</form>
</div>

<table border="0" align="center">

<tr><td align="center"><p> <font color="yellow" size="10">choose your favourit sandwich</font></p>
    <form method="post" name="form1" action="<?php echo $editFormAction;?>">
      <table align="center">
        <tr valign="baseline">
          <td nowrap align="right"> <img src="11.png">Omlit with cheece:</td>
          <td><input type="checkbox" name="omlit_with_cheece" value="" ></td>
        </tr>
        <tr valign="baseline">
          <td nowrap align="right"><img src="44.png"> Hotdog:</td>
          <td><input type="checkbox" name="hotdog" value="" ></td>
        </tr>
        <tr valign="baseline">
          <td nowrap align="right"> <img src="33.png">Sheshwook:</td>
          <td><input type="checkbox" name="sheshwook" value="" ></td>
        </tr>
        <tr valign="baseline">
          <td nowrap align="right"> <img src="55.png">Banee:</td>
          <td><input type="checkbox" name="banee" value="" ></td>
        </tr>
        <tr valign="baseline">
          <td nowrap align="right"> <img src="9.png">Burger:</td>
          <td><input type="checkbox" name="Burger" value="" ></td>
        </tr>
        <tr valign="baseline">
          <td nowrap align="right"> <img src="22.png">Omlit with pastrma:</td>
          <td><input type="checkbox" name="Omlit_with_pastrma" value="" ></td>
        </tr>
        <tr valign="baseline">
          <td nowrap align="right">&nbsp;</td>
          <td><input type="submit" value="save"></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="home (2).php">
    </form>
<p>&nbsp;</p></td></tr></table>

</font></td></tr></table>

<p>&nbsp;</p>
</body></html>